package dao;

import java.util.List;

import bean.Distance;
import bean.Road;
import exception.DBException;

public interface RoadDao {
	public boolean update(List<Road> roads) throws DBException;;
	public boolean update(Road road) throws DBException;;
	public List<Road> selectAllByArea(int area) throws DBException;;
	public boolean delete(Road road) throws DBException;;
	public List<Road> selectByName(String name) throws DBException;
	public List<Road> select(Road road) throws DBException;
	public Road select(int id) throws DBException;
	public List<Distance> restoreDistance(List<Distance> distances,int area) throws DBException; 
	public List<Distance> selectDistances(int area) throws DBException; 
}
 